Skip to main content

Save Topup reqeust

POST : http://<base_url>/digipay/v3/transaction/wallet_topup_request

This API is used to save the topup request

BODY PARAMS:-

ParameterTypeDescriptionValue
user_typeStringinterger type use to a user datail and2
request_idStringnique request_id to topup_wallet123
user_idStringunique id of user assigned to the walletb9a4cbeeedd340509cb1ac628cae2973
amountDoubleamount for which wallet is need to be topup100
reference_idStringunique reference id who has made request for wallet_topupb9a4cbeeedd340509cb1ac628cae2973
noteStringbrief description added at the time of making payment requestTest Note
reference_idStringunique reference id who has made request for wallet_topupb9a4cbeeedd340509cb1ac628cae2973
currency_idStringunique currency_id assigned to the walletb9a4cbeeedd340509cb1ac628cae2973
wallet_idStringunique wallet_id assigned to the user to topup_walletb9a4cbeeedd340509cb1ac628cae2973
actual_transaction_idStringAdd current time stamp in epochtime stampb9a4cbeeedd340509cb1ac628cae2973
transaction_receiptStringlink of transaction receipt which can be photo or pdfb9a4cbeeedd340509cb1ac628cae2973
maker_infoJson{}
checkar_infoJson{}

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_topup_request \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"user_type": 2,
"request_id": "123",
"user_id": "b9a4cbeeedd340509cb1ac628cae2973",
"amount": 100,
"reference_id": "b9a4cbeeedd340509cb1ac628cae2973",
"note": "Test Note",
"currency_id": "123",
"wallet_id": "123",
"actual_transaction_id": "123"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "Topup successfully requested.",
"topup_request_id": "61457e993a294323944a1c2e7c812338"
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400BAD REQUEST
404NOT FOUND
500INTERNAL SERVER ERROR